
#include "includes.h"
#include "structs.h"
#include "declares.h"

int main(int ac, char**av)
{
        zlog_init(ZLOG_CONF_PATH);
        struct msg_buf_t msg_buf;

        add_out_msg_fid(&msg_buf,0,my_make_pair(1, 10));
        add_out_msg_fid(&msg_buf,1,my_make_pair(1, 10));
        add_out_msg_fid(&msg_buf,3,my_make_pair(1, 10));
        add_in_msg(&msg_buf,my_make_pair(4, 4));

        get_out_msg_at(&msg_buf,0);

        get_in_msg_at(&msg_buf,4);

        int i=get_in_msg_size(&msg_buf);
        int j=get_out_msg_size_at(&msg_buf,3);
        
        clear_in_msg(&msg_buf);
        clear_all_out_msg(&msg_buf);

        print_msg_buf(stderr, &msg_buf);
}


